
var flashimage = new Array( ['imgFlashBig0.png','imgFlashSmall0.png','/individual-health-insurance'],
							['imgFlashBig1.png','imgFlashSmall1.png','/small-business-health-insurance'],
							['imgFlashBig2.png','imgFlashSmall2.png','/short-term-health-insurance'],
							['imgFlashBig3.png','imgFlashSmall3.png','/medicare-insurance'],
							['imgFlashBig4.png','imgFlashSmall4.png','/dental-insurance'],
							['imgFlashBig5.png','imgFlashSmall5.png','/vision-insurance'],
							['imgFlashBig6.png','imgFlashSmall6.png','/travel-insurance'],
							['imgFlashBig7.png','imgFlashSmall7.png','/life-insurance']);

function doFlash(b)
{
	switch(b)
	{
		case true://Next
			var iF = flashimage.shift();
			flashimage.push(iF);
			break;
		case false://Back
			var iF = flashimage.pop();
			flashimage.unshift(iF);
			break;
		default://do nothing
	}
	var str = new Array();
	
	str[0] = "url(images/products/" + flashimage[0][1]+ ") no-repeat";
	str[1] = "url(images/products/" + flashimage[1][1]+ ") no-repeat";
	str[2] = "url(images/products/" + flashimage[2][0]+ ") no-repeat";
	str[3] = "url(images/products/" + flashimage[3][1]+ ") no-repeat";
	str[4] = "url(images/products/" + flashimage[4][1]+ ") no-repeat";
	
	//alert(iFlash);
	document.getElementById("imgFlash0").style.background = str[0];
	document.getElementById("imgFlash0").href = flashimage[0][2];
	document.getElementById("imgFlash1").style.background = str[1];
	document.getElementById("imgFlash1").href = flashimage[1][2];
	document.getElementById("imgFlash2").style.background = str[2];
	document.getElementById("imgFlash2").href = flashimage[2][2];
	document.getElementById("imgFlash3").style.background = str[3];
	document.getElementById("imgFlash3").href = flashimage[3][2];
	document.getElementById("imgFlash4").style.background = str[4];
	document.getElementById("imgFlash4").href = flashimage[4][2];
}
